﻿using PageTypeBuilder;
using TemplateFoundation.Tabs;

namespace TemplateFoundation.PageTypes
{
    /// <summary>
    /// Base class for standard pages where focus is on editor content provided by a rich-text editor
    /// </summary>
    public abstract class StandardPageBase : PageTypeBase, IStandardPage
    {
        /// <summary>
        /// The main editorial content for the page
        /// </summary>
        /// <remarks>Sort order: 1000</remarks>
        [PageTypeProperty(
            EditCaption = "Main body",
            HelpText = "The main rich-text content of the page",
            UniqueValuePerLanguage = true,
            Tab=typeof(InformationTab),
            SortOrder = 1000)]
        public virtual string MainBody { get; set; }
    }
}